package com.luxf.base.domainevent.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.Instant;

/**
 * 接收消息本地消息表
 *
 * @author fast66
 * 2021-05-26 11:35
 **/
@Entity
@Table(name = "message_received_history")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MessageReceivedHistory {

    @Id
    @Column(name = "id", length = 32)
    private String id;

    @Column(name = "create_at")
    private Instant createdDate;
}
